package com.ics.atable.chat.node;

import com.alibaba.cloud.ai.graph.OverAllState;
import com.alibaba.cloud.ai.graph.action.NodeAction;

import java.util.HashMap;
import java.util.Map;

import static com.ics.atable.chat.constant.ItemQueryConstant.*;

public class InitNode implements NodeAction {

    @Override
    public Map<String, Object> apply(OverAllState state) throws Exception {
        Map<String, Object> result = new HashMap<>();
        result.put(INTENT_NEXT_NODE, HUMAN_FEEDBACK);
        result.put(FEED_BACK_COUNT, 0);
        return result;
    }
}
